summaryrefslogtreecommitdiff
path: root/app/[lng]/evcp/(evcp)/(master-data)/items/page.tsx
diff options
context:
space:
mode:
authorjoonhoekim <26rote@gmail.com>2025-12-02 20:04:17 +0900
committerjoonhoekim <26rote@gmail.com>2025-12-02 20:04:17 +0900
commit7bdddbacf8610140c0c9db7ccb09d546203ce380 (patch)
treec59df43eac4c256d54dbea9491e1604535551230 /app/[lng]/evcp/(evcp)/(master-data)/items/page.tsx
parent87ab8fa7aa845e3aa56941d9eeaba03f36f4b3d3 (diff)
(김준회) 메뉴명과 화면 내 h태그 일치 시키기, i18n 적용
Diffstat (limited to 'app/[lng]/evcp/(evcp)/(master-data)/items/page.tsx')
-rw-r--r--app/[lng]/evcp/(evcp)/(master-data)/items/page.tsx8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/[lng]/evcp/(evcp)/(master-data)/items/page.tsx b/app/[lng]/evcp/(evcp)/(master-data)/items/page.tsx
index d61b50df..64f0b4d8 100644
--- a/app/[lng]/evcp/(evcp)/(master-data)/items/page.tsx
+++ b/app/[lng]/evcp/(evcp)/(master-data)/items/page.tsx
@@ -10,11 +10,17 @@ import { getItems } from "@/lib/items/service"
import { ItemsTable } from "@/lib/items/table/items-table"
import { ViewModeToggle } from "@/components/data-table/view-mode-toggle"
import { InformationButton } from "@/components/information/information-button"
+import { useTranslation } from "@/i18n"
+
interface IndexPageProps {
+ params: Promise<{ lng: string }>
searchParams: Promise<SearchParams>
}
export default async function IndexPage(props: IndexPageProps) {
+ const { lng } = await props.params
+ const { t } = await useTranslation(lng, 'menu')
+
const searchParams = await props.searchParams
const search = searchParamsCache.parse(searchParams)
@@ -36,7 +42,7 @@ export default async function IndexPage(props: IndexPageProps) {
<div>
<div className="flex items-center gap-2">
<h2 className="text-2xl font-bold tracking-tight">
- 패키지 넘버
+ {t('menu.master_data.package_numbers')}
</h2>
<InformationButton pagePath="evcp/items" />
</div>